package com.wangjiacai.utils.web.service;

import java.util.concurrent.Callable;
import java.util.concurrent.Executor;

public interface AsyncService {

    <T> T  call(Callable<T> callable);

    <T> T  call(Callable<T> callable, Executor executor);

     void  run(Runnable runnable);

    void  run(Runnable runnable, Executor executor);
}
